<?PHP

	class tpl_edituser {
		
		public static function usersettings(){
		
			$form_html = '';
			foreach($GLOBALS['OUTPUT']->form as $form_data){
				
				$form_html .= <<<EOV
<div class='table_header'>&nbsp;{$form_data[0]}</div>
<table style='width: 100%;' cellspacing='1' cellpadding='5'>
	{$form_data[1]}
</table>

<br />
EOV;
			}
			
			return	tpl_globals::header() .
				<<<EOV
<form action='./index.php?act=admin{$GLOBALS['OUTPUT']->ses}&page=edituser&section=usersettings&update=1&uid={$GLOBALS['OUTPUT']->uid}' method='post'>
	{$form_html}
	<table style='width: 100%;' cellspacing='1' cellpadding='5'>
		<tr>
			<td class='table_header_row' style='text-align: center'><input class='form_button_norm' onmouseout="this.className=this.className.replace('_over','_norm');" onmouseover="this.className=this.className.replace('_norm','_over');" type='submit' value='{$GLOBALS['LANG']->lang_formcommon->submit}' /></td>
		</tr>
	</table>
</form>
EOV
.
			tpl_globals::footer();
				
		}
		
		public static function userprofile(){
		
			$form_html = '';
			foreach($GLOBALS['OUTPUT']->form as $form_data){
				
				$form_html .= <<<EOV
<div class='table_header'>&nbsp;{$form_data[0]}</div>
<table style='width: 100%;' cellspacing='1' cellpadding='5'>
	{$form_data[1]}
</table>

<br />
EOV;
			}
			
			return	tpl_globals::header() .
				<<<EOV
<form action='./index.php?act=admin{$GLOBALS['OUTPUT']->ses}&page=edituser&section=userprofile&update=1&uid={$GLOBALS['OUTPUT']->uid}' method='post'>
	{$form_html}
	<table style='width: 100%;' cellspacing='1' cellpadding='5'>
		<tr>
			<td class='table_header_row' style='text-align: center'><input class='form_button_norm' onmouseout="this.className=this.className.replace('_over','_norm');" onmouseover="this.className=this.className.replace('_norm','_over');" type='submit' value='{$GLOBALS['LANG']->lang_formcommon->submit}' /></td>
		</tr>
	</table>
</form>
EOV
.
			tpl_globals::footer();
				
		}
		
		public static function userpermissions(){
		
			$form_html = '';
			foreach($GLOBALS['OUTPUT']->forms as $label=>$fields){
				
				$form_html .= <<<EOV
<div class='table_header'>&nbsp;{$label}</div>
<table style='width: 100%;' cellspacing='1' cellpadding='5'>
	{$fields}
</table>

<br />
EOV;
			}
			
			return	tpl_globals::header() .
				<<<EOV
<form action='./index.php?act=admin{$GLOBALS['OUTPUT']->ses}&page=edituser&section=userpermissions&update=1&uid={$GLOBALS['OUTPUT']->uid}' method='post'>
	{$form_html}
	<table style='width: 100%;' cellspacing='1' cellpadding='5'>
		<tr>
			<td class='table_header_row' style='text-align: center'><input class='form_button_norm' onmouseout="this.className=this.className.replace('_over','_norm');" onmouseover="this.className=this.className.replace('_norm','_over');" type='submit' value='{$GLOBALS['LANG']->lang_formcommon->submit}' /></td>
		</tr>
	</table>
</form>
EOV
.
			tpl_globals::footer();
				
		}
		
	}

?>